//
// Created on 2024/2/29.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef OHOS_OHAUDIOUTILS_H
#define OHOS_OHAUDIOUTILS_H


#include <iostream>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <thread>
#include <chrono>
#include <ctime>

#include <ohaudio/native_audiorenderer.h>
#include <ohaudio/native_audiostreambuilder.h>

class OHAudioUtils {
    public:
    OHAudioUtils();
    ~OHAudioUtils();
    
    void load(const char *audioPath);
    static  void play(const char *audioPath);
    void pause();
    void close();
};

#endif //OHOS_OHAUDIOUTILS_H
